package com.hxqc.basic.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface MenuMapper {
	public Integer countAllRights(Map<String, String> map);

	public List<Map<String, Object>> findAllRights(Map<String, String> map);

	public Map<String, Object> findRightById(String right_id);

	public void updateRightOrder(@Param("sort_id") int sort_id, @Param("right_id") String right_id);

	public void insertMenu(Map<String, String> map);

	public void updateMenu(Map<String, String> map);

	public void updateRoleRight(Map<String, String> map);

	public Map<String, Object> findRightByRightName(String right_name);

	public void insertRoleRight(Map<String, String> map);

	public void deleteRoleRight(@Param("right_id") String right_id);

	public void deleteRight(@Param("right_id") String right_id);

	public Integer countSortIdRepart();

	public void batchUpdateSort(@Param("list") List<Map<String, Object>> list);

}
